﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ModArt.aspx.cs" Inherits="Com.CMS263.Web.manage.ManageSingleArt.ModArt" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <script language="javascript" src="/manage/js/jquery-1.4.2.min.js"></script>

    <link href="/manage/css/common.css" rel="stylesheet" type="text/css" />
    <link href="/manage/css/main.css" rel="stylesheet" type="text/css" />
    <link href="/manage/css/box.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript" language="javascript" src="/manage/js/ui.core.js"></script>

    <link href="/manage/themes/base/ui.all.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript" language="javascript" src="/manage/js/ui.datepicker.js"></script>

    <script language="javascript">
        var ap = '<%=Request["menuId"] %>';
        $(function() {
            $("[name=chk]").each(function() {

                if (this.value == ap) {
                    this.visible = false;
                    this.checked = true;
                }
            });

        })
        $(function() {
            $("#addDate").datepicker({
                closeText: '关闭',
                prevText: '&#x3c;上月',
                nextText: '下月&#x3e;',
                currentText: '今天',
                monthNames: ['一月', '二月', '三月', '四月', '五月', '六月',
		'七月', '八月', '九月', '十月', '十一月', '十二月'],
                monthNamesShort: ['一', '二', '三', '四', '五', '六',
		'七', '八', '九', '十', '十一', '十二'],
                dayNames: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],
                dayNamesShort: ['周日', '周一', '周二', '周三', '周四', '周五', '周六'],
                dayNamesMin: ['日', '一', '二', '三', '四', '五', '六'],
                dateFormat: 'yy-mm-dd', firstDay: 1,
                isRTL: false
            });
        });
    </script>
</head>
<body>
    <form id="form1" runat="server" enctype="multipart/form-data">
    <div class="main">
        <div class="mainMenu">
            <div class="mainMenuList">
                <ul>
                    <li class="s"><a><b>修改<%=menuTitle %></b><span></span></a></li>
                </ul>
            </div>
        </div>
        <div class="mainContent">
            <div class="con1 productForm">
                <table width="100%" border="0" cellspacing="0" cellpadding="0" class="table1">
            <tr>
                <td class="r" >
                    标题:
                </td>
                <td >
                 <input type="text" name="title" id="title" value='<%=GetText(ab.title) %>' MaxLength="140" style="width:400px" class="input1" />
                &nbsp;<asp:CheckBox ID="chkRed" runat="server" Text="标红"  />
                    <asp:CheckBox ID="chkStrong" runat="server" 
                         Text="加粗" />
                </td>
            </tr>
            <tr>
                <td class="r">
                    添加时间:</td>
                <td >
                
                     <input type="text" value="<%=ab.addDate %>" name="addDate" id="addDate" class="input1" />
                </td>
            </tr>
             <tr>
                <td class="r">
                    点击次数:</td>
                <td >
                
                     <input type="text" value="<%=ab.clickCount.ToString() %>" name="clickCount" id="clickCount" class="input1" />
                    
                </td>
            </tr>
            <!--开始扩展属性-->
            <%foreach (Com.CMS263.PO.ExtAttribute item in extList)
              { %>
             <tr>
                <td class="r">
                    <%=item.attrTxtName %>:
                </td>
                <td >
                  <%=extbll.ShowAttr(item,id) %>
                    &nbsp;</td>
            </tr>
            <%} %>
           <!--结束扩展属性-->
             
            <tr>
               <td colspan="2">
                            <div class="con1 productFormBtn cf">
                            </div>
                        </td>
                    </tr>
            <tr>
                    <td class="r">
                       </td>
                    <td  style="padding-left:200px;">
                        <asp:Button ID="btnSave" runat="server" Text="保存" OnClick="btnSave_Click" /> 
                         <% if (System.Configuration.ConfigurationSettings.AppSettings["isshow"] == "true")
                            {%>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                       <input  value="生成单页代码" type="button" onclick='javascript:window.location.href="/manage/ManageGetTags/gettagssingle.aspx?pid=<%=Request["pid"] %>&menuId=<%=Request["menuId"] %>"' />
                 <%} %>
                        <asp:HiddenField ID="hdfTypeId" runat="server" />
                        <asp:HiddenField ID="hdfMenuId" runat="server" />
                    </td>
                </tr>
        </table></div></div>
    </div>
    </form>
</body>
</html>
